package com.project.bookstore.user.service;

import com.project.bookstore.common.CommonResult;
import com.project.bookstore.user.domain.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.bookstore.user.pojo.AddressCreateVO;

/**
* @author 12603
* @description 针对表【t_address(收货地址)】的数据库操作Service
* @createDate 2022-05-14 20:12:16
*/
public interface AddressService extends IService<Address> {

    /**
     * 新增
     * @param userId
     * @param addressCreateVO
     * @return
     */
    CommonResult addAddress(Long userId, AddressCreateVO addressCreateVO);

    /**
     * 修改
     * @param addressId
     * @param addressCreateVO
     * @return
     */
    CommonResult updateAdd(Long addressId, AddressCreateVO addressCreateVO);
}
